package cn.dhnep.demo.mapper;

import cn.dhnep.demo.pojo.Horseman;
import cn.dhnep.demo.util.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dhn
 * @since 2021-08-24
 */
public interface HorsemanMapper extends BaseMapper<Horseman> {

    //骑手查询分页数据
    List<Horseman> selectPageList(Page page);
    //骑手分页数据总数
    Integer selectPageCount(Page page);

    //新增骑手
    int horsemanAdd(Horseman horseman);

    //id查询骑手信息
    public Horseman idqueryhorseman(Horseman horseman);

    //修改骑手信息
    int horsemanUpda(Horseman horseman);
}
